//引入请求函数
import request from "@/utils/request.ts";
import { requestHttp } from "@/utils/request.ts";

//引入类型约束

/**
 * 商品相关请求api
 */


//根据商品id请求对应的商品数据
export const reqProductInfoById = (productId:number) => {
    return requestHttp<any>({
        url:"/reception/product/productId",
        method:"get",
        params:{
            productId:productId
        }
    })
}

//根据商品名称模糊查询商品 productName = ?
export const reqProductListByName = (productName:string) => {
    return requestHttp({
        url:"/reception/product/like",
        method:"get",
        params:{
            productName:productName
        }
    })
}